<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form style="width: 800px;height: 500px;" class="form-horizontal table-form"  name="user_form" id="user_form" action="dirUserRole.action"  onsubmit="return navTabSearch(this)">
	<input type="hidden" name="userId" id="userId" value="<ww:property value='userId'/>">
	<input type="hidden" name="page.orderFlag" id="page.orderFlag" value="<ww:property value='page.orderFlag'/>" class="order-flag"> 
	<input type="hidden" name="page.orderString" id="page.orderString" value="<ww:property value='page.orderString'/>" class="order-string">
	<input type="hidden" name="page.pageSize" class="page-size" value="<ww:property value='page.pageSize'/>">
	<input type="hidden" name="page.totalPages" class="page-count" value="<ww:property value='page.totalPages'/>">
	<input type="hidden" name="page.currentPage" class="page-current" value="<ww:property value='page.currentPage'/>">
	<div class="table-header">
		<div class="table-btn">
			<div class="btn-group">
			  <ww:link funcode="acl_user/addUserRole" target="cssDialog" title="新增权限" css="btn" caption="新增权限" href="getUserRole.action?userId=%{userId} & Flag=%{Flag}"></ww:link>
			</div>
			<div class="btn-group">
			  <ww:link funcode="acl_user/delUserRole"  title="解除权限" css="btn" caption="解除权限" onclick="$action.execBatchThenBack(this,{url:'delUserRole.action?userId=%{userId}'});" href="javascript:;" ></ww:link>
			</div>
		</div>
	</div>
	<table class="table table-bordered" style="margin-bottom:15px;">
		<thead>
			<tr>
			    <th width="25px"><input group="ids" type="checkbox" class="cleck-all" name="checkdelall" id="checkdelall"/></th>
			    <%--<th width="40px">操作</th>--%>
				<th width="250px">已授角色权限</th>
				<th  >角色描述</th>
				<th width="40px" >状态</th>
			</tr>
		</thead>
		<tbody>
		    <ww:iterator value="RoleList" id="data"> 
			<tr>
				<td class="text-center"><input type="checkbox"  name="ids" id="ids" value="<ww:property value="uuid"/>"/></td>
				<%--<td class="text-center">
			    	<ww:link funcode="acl_user/delUserRole" caption="删除" onclick="$action.exec(this,{url:'delUserRole.action?ids=%{uuid} & userId=%{userId}'});" href="javascript:;"></ww:link>
				</td>--%>
				<td><ww:property value="name"/></td>
				<td><ww:property value="remark"/></td>
				<td class="text-center"><ww:property value="#dictID.getDictType('d_openflag',openFlag).name"/></td>
			</tr>
			</ww:iterator>
		</tbody>
	</table>
					<%--<table class="table table-bordered" style="border-top: 1px solid #ddd;">
				<thead>
					<tr>
						<th  width="399px;">角色名称</th>
						<th  >关联岗位</th>
						<th width="40px" >状态</th>
					</tr>
				</thead>
				<tbody>
					<ww:iterator value="postRoleList" id="postdata" status="postrolestatus">
					<ww:set name="record" value="postRoleList[#postrolestatus.index]"/>
					<tr>
						<td><ww:property value="#record[1]"/></td>
						<td><ww:property value="#record[2]"/></td>
						<td class="text-center"><ww:property value="#dictID.getDictType('d_openflag',#record[3]).name"/></td>
					</tr>
					</ww:iterator>
				</tbody>
			</table>--%>
</form>